/**
 * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
 * Licensed under the GNU Affero General Public License (AGPL).
 * See License.AGPL.txt in the project root for license information.
 */

// source: daemon.proto
/**
 * @fileoverview
 * @enhanceable
 * @suppress {missingRequire} reports error on implicit type usages.
 * @suppress {messageConventions} JS Compiler reports an error if a variable or
 *     field starts with 'MSG_' and isn't a translatable message.
 * @public
 */
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck

var jspb = require("google-protobuf");
var goog = jspb;
var global = function () {
    return this || window || global || self || Function("return this")();
}.call(null);

var content$service$api_initializer_pb = require("@gitpod/content-service/lib");
goog.object.extend(proto, content$service$api_initializer_pb);
goog.exportSymbol("proto.wsdaemon.BackupWorkspaceRequest", null, global);
goog.exportSymbol("proto.wsdaemon.BackupWorkspaceResponse", null, global);
goog.exportSymbol("proto.wsdaemon.DisposeWorkspaceRequest", null, global);
goog.exportSymbol("proto.wsdaemon.DisposeWorkspaceResponse", null, global);
goog.exportSymbol("proto.wsdaemon.InitWorkspaceRequest", null, global);
goog.exportSymbol("proto.wsdaemon.InitWorkspaceResponse", null, global);
goog.exportSymbol("proto.wsdaemon.IsWorkspaceExistsRequest", null, global);
goog.exportSymbol("proto.wsdaemon.IsWorkspaceExistsResponse", null, global);
goog.exportSymbol("proto.wsdaemon.TakeSnapshotRequest", null, global);
goog.exportSymbol("proto.wsdaemon.TakeSnapshotResponse", null, global);
goog.exportSymbol("proto.wsdaemon.WaitForInitRequest", null, global);
goog.exportSymbol("proto.wsdaemon.WaitForInitResponse", null, global);
goog.exportSymbol("proto.wsdaemon.WorkspaceContentState", null, global);
goog.exportSymbol("proto.wsdaemon.WorkspaceMetadata", null, global);
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.wsdaemon.InitWorkspaceRequest = function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wsdaemon.InitWorkspaceRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.wsdaemon.InitWorkspaceRequest.displayName = "proto.wsdaemon.InitWorkspaceRequest";
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.wsdaemon.WorkspaceMetadata = function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wsdaemon.WorkspaceMetadata, jspb.Message);
if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.wsdaemon.WorkspaceMetadata.displayName = "proto.wsdaemon.WorkspaceMetadata";
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.wsdaemon.InitWorkspaceResponse = function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wsdaemon.InitWorkspaceResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.wsdaemon.InitWorkspaceResponse.displayName = "proto.wsdaemon.InitWorkspaceResponse";
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.wsdaemon.WaitForInitRequest = function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wsdaemon.WaitForInitRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.wsdaemon.WaitForInitRequest.displayName = "proto.wsdaemon.WaitForInitRequest";
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.wsdaemon.WaitForInitResponse = function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wsdaemon.WaitForInitResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.wsdaemon.WaitForInitResponse.displayName = "proto.wsdaemon.WaitForInitResponse";
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.wsdaemon.IsWorkspaceExistsRequest = function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wsdaemon.IsWorkspaceExistsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.wsdaemon.IsWorkspaceExistsRequest.displayName = "proto.wsdaemon.IsWorkspaceExistsRequest";
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.wsdaemon.IsWorkspaceExistsResponse = function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wsdaemon.IsWorkspaceExistsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.wsdaemon.IsWorkspaceExistsResponse.displayName = "proto.wsdaemon.IsWorkspaceExistsResponse";
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.wsdaemon.TakeSnapshotRequest = function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wsdaemon.TakeSnapshotRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.wsdaemon.TakeSnapshotRequest.displayName = "proto.wsdaemon.TakeSnapshotRequest";
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.wsdaemon.TakeSnapshotResponse = function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wsdaemon.TakeSnapshotResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.wsdaemon.TakeSnapshotResponse.displayName = "proto.wsdaemon.TakeSnapshotResponse";
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.wsdaemon.DisposeWorkspaceRequest = function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wsdaemon.DisposeWorkspaceRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.wsdaemon.DisposeWorkspaceRequest.displayName = "proto.wsdaemon.DisposeWorkspaceRequest";
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.wsdaemon.DisposeWorkspaceResponse = function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wsdaemon.DisposeWorkspaceResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.wsdaemon.DisposeWorkspaceResponse.displayName = "proto.wsdaemon.DisposeWorkspaceResponse";
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.wsdaemon.BackupWorkspaceRequest = function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wsdaemon.BackupWorkspaceRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.wsdaemon.BackupWorkspaceRequest.displayName = "proto.wsdaemon.BackupWorkspaceRequest";
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.wsdaemon.BackupWorkspaceResponse = function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wsdaemon.BackupWorkspaceResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.wsdaemon.BackupWorkspaceResponse.displayName = "proto.wsdaemon.BackupWorkspaceResponse";
}

if (jspb.Message.GENERATE_TO_OBJECT) {
    /**
     * Creates an object representation of this proto.
     * Field names that are reserved in JavaScript and will be renamed to pb_name.
     * Optional fields that are not set will be set to undefined.
     * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
     * For the list of reserved names please see:
     *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
     * @param {boolean=} opt_includeInstance Deprecated. whether to include the
     *     JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @return {!Object}
     */
    proto.wsdaemon.InitWorkspaceRequest.prototype.toObject = function (opt_includeInstance) {
        return proto.wsdaemon.InitWorkspaceRequest.toObject(opt_includeInstance, this);
    };

    /**
     * Static version of the {@see toObject} method.
     * @param {boolean|undefined} includeInstance Deprecated. Whether to include
     *     the JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @param {!proto.wsdaemon.InitWorkspaceRequest} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.wsdaemon.InitWorkspaceRequest.toObject = function (includeInstance, msg) {
        var f,
            obj = {
                id: jspb.Message.getFieldWithDefault(msg, 1, ""),
                metadata: (f = msg.getMetadata()) && proto.wsdaemon.WorkspaceMetadata.toObject(includeInstance, f),
                initializer:
                    (f = msg.getInitializer()) &&
                    content$service$api_initializer_pb.WorkspaceInitializer.toObject(includeInstance, f),
                fullWorkspaceBackup: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
                contentManifest: msg.getContentManifest_asB64(),
                remoteStorageDisabled: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
                storageQuotaBytes: jspb.Message.getFieldWithDefault(msg, 8, 0),
                persistentVolumeClaim: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
            };

        if (includeInstance) {
            obj.$jspbMessageInstance = msg;
        }
        return obj;
    };
}

/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.wsdaemon.InitWorkspaceRequest}
 */
proto.wsdaemon.InitWorkspaceRequest.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.wsdaemon.InitWorkspaceRequest();
    return proto.wsdaemon.InitWorkspaceRequest.deserializeBinaryFromReader(msg, reader);
};

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.wsdaemon.InitWorkspaceRequest} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.wsdaemon.InitWorkspaceRequest}
 */
proto.wsdaemon.InitWorkspaceRequest.deserializeBinaryFromReader = function (msg, reader) {
    while (reader.nextField()) {
        if (reader.isEndGroup()) {
            break;
        }
        var field = reader.getFieldNumber();
        switch (field) {
            case 1:
                var value = /** @type {string} */ (reader.readString());
                msg.setId(value);
                break;
            case 2:
                var value = new proto.wsdaemon.WorkspaceMetadata();
                reader.readMessage(value, proto.wsdaemon.WorkspaceMetadata.deserializeBinaryFromReader);
                msg.setMetadata(value);
                break;
            case 3:
                var value = new content$service$api_initializer_pb.WorkspaceInitializer();
                reader.readMessage(
                    value,
                    content$service$api_initializer_pb.WorkspaceInitializer.deserializeBinaryFromReader,
                );
                msg.setInitializer(value);
                break;
            case 4:
                var value = /** @type {boolean} */ (reader.readBool());
                msg.setFullWorkspaceBackup(value);
                break;
            case 5:
                var value = /** @type {!Uint8Array} */ (reader.readBytes());
                msg.setContentManifest(value);
                break;
            case 7:
                var value = /** @type {boolean} */ (reader.readBool());
                msg.setRemoteStorageDisabled(value);
                break;
            case 8:
                var value = /** @type {number} */ (reader.readInt64());
                msg.setStorageQuotaBytes(value);
                break;
            case 9:
                var value = /** @type {boolean} */ (reader.readBool());
                msg.setPersistentVolumeClaim(value);
                break;
            default:
                reader.skipField();
                break;
        }
    }
    return msg;
};

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.wsdaemon.InitWorkspaceRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
};

/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.wsdaemon.InitWorkspaceRequest} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.wsdaemon.InitWorkspaceRequest.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
    f = message.getId();
    if (f.length > 0) {
        writer.writeString(1, f);
    }
    f = message.getMetadata();
    if (f != null) {
        writer.writeMessage(2, f, proto.wsdaemon.WorkspaceMetadata.serializeBinaryToWriter);
    }
    f = message.getInitializer();
    if (f != null) {
        writer.writeMessage(3, f, content$service$api_initializer_pb.WorkspaceInitializer.serializeBinaryToWriter);
    }
    f = message.getFullWorkspaceBackup();
    if (f) {
        writer.writeBool(4, f);
    }
    f = message.getContentManifest_asU8();
    if (f.length > 0) {
        writer.writeBytes(5, f);
    }
    f = message.getRemoteStorageDisabled();
    if (f) {
        writer.writeBool(7, f);
    }
    f = message.getStorageQuotaBytes();
    if (f !== 0) {
        writer.writeInt64(8, f);
    }
    f = message.getPersistentVolumeClaim();
    if (f) {
        writer.writeBool(9, f);
    }
};

/**
 * optional string id = 1;
 * @return {string}
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.getId = function () {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};

/**
 * @param {string} value
 * @return {!proto.wsdaemon.InitWorkspaceRequest} returns this
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.setId = function (value) {
    return jspb.Message.setProto3StringField(this, 1, value);
};

/**
 * optional WorkspaceMetadata metadata = 2;
 * @return {?proto.wsdaemon.WorkspaceMetadata}
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.getMetadata = function () {
    return /** @type{?proto.wsdaemon.WorkspaceMetadata} */ (
        jspb.Message.getWrapperField(this, proto.wsdaemon.WorkspaceMetadata, 2)
    );
};

/**
 * @param {?proto.wsdaemon.WorkspaceMetadata|undefined} value
 * @return {!proto.wsdaemon.InitWorkspaceRequest} returns this
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.setMetadata = function (value) {
    return jspb.Message.setWrapperField(this, 2, value);
};

/**
 * Clears the message field making it undefined.
 * @return {!proto.wsdaemon.InitWorkspaceRequest} returns this
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.clearMetadata = function () {
    return this.setMetadata(undefined);
};

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.hasMetadata = function () {
    return jspb.Message.getField(this, 2) != null;
};

/**
 * optional contentservice.WorkspaceInitializer initializer = 3;
 * @return {?proto.contentservice.WorkspaceInitializer}
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.getInitializer = function () {
    return /** @type{?proto.contentservice.WorkspaceInitializer} */ (
        jspb.Message.getWrapperField(this, content$service$api_initializer_pb.WorkspaceInitializer, 3)
    );
};

/**
 * @param {?proto.contentservice.WorkspaceInitializer|undefined} value
 * @return {!proto.wsdaemon.InitWorkspaceRequest} returns this
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.setInitializer = function (value) {
    return jspb.Message.setWrapperField(this, 3, value);
};

/**
 * Clears the message field making it undefined.
 * @return {!proto.wsdaemon.InitWorkspaceRequest} returns this
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.clearInitializer = function () {
    return this.setInitializer(undefined);
};

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.hasInitializer = function () {
    return jspb.Message.getField(this, 3) != null;
};

/**
 * optional bool full_workspace_backup = 4;
 * @return {boolean}
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.getFullWorkspaceBackup = function () {
    return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
};

/**
 * @param {boolean} value
 * @return {!proto.wsdaemon.InitWorkspaceRequest} returns this
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.setFullWorkspaceBackup = function (value) {
    return jspb.Message.setProto3BooleanField(this, 4, value);
};

/**
 * optional bytes content_manifest = 5;
 * @return {!(string|Uint8Array)}
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.getContentManifest = function () {
    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};

/**
 * optional bytes content_manifest = 5;
 * This is a type-conversion wrapper around `getContentManifest()`
 * @return {string}
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.getContentManifest_asB64 = function () {
    return /** @type {string} */ (jspb.Message.bytesAsB64(this.getContentManifest()));
};

/**
 * optional bytes content_manifest = 5;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getContentManifest()`
 * @return {!Uint8Array}
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.getContentManifest_asU8 = function () {
    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getContentManifest()));
};

/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.wsdaemon.InitWorkspaceRequest} returns this
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.setContentManifest = function (value) {
    return jspb.Message.setProto3BytesField(this, 5, value);
};

/**
 * optional bool remote_storage_disabled = 7;
 * @return {boolean}
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.getRemoteStorageDisabled = function () {
    return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
};

/**
 * @param {boolean} value
 * @return {!proto.wsdaemon.InitWorkspaceRequest} returns this
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.setRemoteStorageDisabled = function (value) {
    return jspb.Message.setProto3BooleanField(this, 7, value);
};

/**
 * optional int64 storage_quota_bytes = 8;
 * @return {number}
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.getStorageQuotaBytes = function () {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
};

/**
 * @param {number} value
 * @return {!proto.wsdaemon.InitWorkspaceRequest} returns this
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.setStorageQuotaBytes = function (value) {
    return jspb.Message.setProto3IntField(this, 8, value);
};

/**
 * optional bool persistent_volume_claim = 9;
 * @return {boolean}
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.getPersistentVolumeClaim = function () {
    return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
};

/**
 * @param {boolean} value
 * @return {!proto.wsdaemon.InitWorkspaceRequest} returns this
 */
proto.wsdaemon.InitWorkspaceRequest.prototype.setPersistentVolumeClaim = function (value) {
    return jspb.Message.setProto3BooleanField(this, 9, value);
};

if (jspb.Message.GENERATE_TO_OBJECT) {
    /**
     * Creates an object representation of this proto.
     * Field names that are reserved in JavaScript and will be renamed to pb_name.
     * Optional fields that are not set will be set to undefined.
     * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
     * For the list of reserved names please see:
     *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
     * @param {boolean=} opt_includeInstance Deprecated. whether to include the
     *     JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @return {!Object}
     */
    proto.wsdaemon.WorkspaceMetadata.prototype.toObject = function (opt_includeInstance) {
        return proto.wsdaemon.WorkspaceMetadata.toObject(opt_includeInstance, this);
    };

    /**
     * Static version of the {@see toObject} method.
     * @param {boolean|undefined} includeInstance Deprecated. Whether to include
     *     the JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @param {!proto.wsdaemon.WorkspaceMetadata} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.wsdaemon.WorkspaceMetadata.toObject = function (includeInstance, msg) {
        var f,
            obj = {
                owner: jspb.Message.getFieldWithDefault(msg, 1, ""),
                metaId: jspb.Message.getFieldWithDefault(msg, 2, ""),
            };

        if (includeInstance) {
            obj.$jspbMessageInstance = msg;
        }
        return obj;
    };
}

/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.wsdaemon.WorkspaceMetadata}
 */
proto.wsdaemon.WorkspaceMetadata.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.wsdaemon.WorkspaceMetadata();
    return proto.wsdaemon.WorkspaceMetadata.deserializeBinaryFromReader(msg, reader);
};

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.wsdaemon.WorkspaceMetadata} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.wsdaemon.WorkspaceMetadata}
 */
proto.wsdaemon.WorkspaceMetadata.deserializeBinaryFromReader = function (msg, reader) {
    while (reader.nextField()) {
        if (reader.isEndGroup()) {
            break;
        }
        var field = reader.getFieldNumber();
        switch (field) {
            case 1:
                var value = /** @type {string} */ (reader.readString());
                msg.setOwner(value);
                break;
            case 2:
                var value = /** @type {string} */ (reader.readString());
                msg.setMetaId(value);
                break;
            default:
                reader.skipField();
                break;
        }
    }
    return msg;
};

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.wsdaemon.WorkspaceMetadata.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.wsdaemon.WorkspaceMetadata.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
};

/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.wsdaemon.WorkspaceMetadata} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.wsdaemon.WorkspaceMetadata.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
    f = message.getOwner();
    if (f.length > 0) {
        writer.writeString(1, f);
    }
    f = message.getMetaId();
    if (f.length > 0) {
        writer.writeString(2, f);
    }
};

/**
 * optional string owner = 1;
 * @return {string}
 */
proto.wsdaemon.WorkspaceMetadata.prototype.getOwner = function () {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};

/**
 * @param {string} value
 * @return {!proto.wsdaemon.WorkspaceMetadata} returns this
 */
proto.wsdaemon.WorkspaceMetadata.prototype.setOwner = function (value) {
    return jspb.Message.setProto3StringField(this, 1, value);
};

/**
 * optional string meta_id = 2;
 * @return {string}
 */
proto.wsdaemon.WorkspaceMetadata.prototype.getMetaId = function () {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};

/**
 * @param {string} value
 * @return {!proto.wsdaemon.WorkspaceMetadata} returns this
 */
proto.wsdaemon.WorkspaceMetadata.prototype.setMetaId = function (value) {
    return jspb.Message.setProto3StringField(this, 2, value);
};

if (jspb.Message.GENERATE_TO_OBJECT) {
    /**
     * Creates an object representation of this proto.
     * Field names that are reserved in JavaScript and will be renamed to pb_name.
     * Optional fields that are not set will be set to undefined.
     * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
     * For the list of reserved names please see:
     *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
     * @param {boolean=} opt_includeInstance Deprecated. whether to include the
     *     JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @return {!Object}
     */
    proto.wsdaemon.InitWorkspaceResponse.prototype.toObject = function (opt_includeInstance) {
        return proto.wsdaemon.InitWorkspaceResponse.toObject(opt_includeInstance, this);
    };

    /**
     * Static version of the {@see toObject} method.
     * @param {boolean|undefined} includeInstance Deprecated. Whether to include
     *     the JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @param {!proto.wsdaemon.InitWorkspaceResponse} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.wsdaemon.InitWorkspaceResponse.toObject = function (includeInstance, msg) {
        var f,
            obj = {};

        if (includeInstance) {
            obj.$jspbMessageInstance = msg;
        }
        return obj;
    };
}

/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.wsdaemon.InitWorkspaceResponse}
 */
proto.wsdaemon.InitWorkspaceResponse.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.wsdaemon.InitWorkspaceResponse();
    return proto.wsdaemon.InitWorkspaceResponse.deserializeBinaryFromReader(msg, reader);
};

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.wsdaemon.InitWorkspaceResponse} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.wsdaemon.InitWorkspaceResponse}
 */
proto.wsdaemon.InitWorkspaceResponse.deserializeBinaryFromReader = function (msg, reader) {
    while (reader.nextField()) {
        if (reader.isEndGroup()) {
            break;
        }
        var field = reader.getFieldNumber();
        switch (field) {
            default:
                reader.skipField();
                break;
        }
    }
    return msg;
};

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.wsdaemon.InitWorkspaceResponse.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.wsdaemon.InitWorkspaceResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
};

/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.wsdaemon.InitWorkspaceResponse} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.wsdaemon.InitWorkspaceResponse.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
};

if (jspb.Message.GENERATE_TO_OBJECT) {
    /**
     * Creates an object representation of this proto.
     * Field names that are reserved in JavaScript and will be renamed to pb_name.
     * Optional fields that are not set will be set to undefined.
     * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
     * For the list of reserved names please see:
     *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
     * @param {boolean=} opt_includeInstance Deprecated. whether to include the
     *     JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @return {!Object}
     */
    proto.wsdaemon.WaitForInitRequest.prototype.toObject = function (opt_includeInstance) {
        return proto.wsdaemon.WaitForInitRequest.toObject(opt_includeInstance, this);
    };

    /**
     * Static version of the {@see toObject} method.
     * @param {boolean|undefined} includeInstance Deprecated. Whether to include
     *     the JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @param {!proto.wsdaemon.WaitForInitRequest} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.wsdaemon.WaitForInitRequest.toObject = function (includeInstance, msg) {
        var f,
            obj = {
                id: jspb.Message.getFieldWithDefault(msg, 1, ""),
            };

        if (includeInstance) {
            obj.$jspbMessageInstance = msg;
        }
        return obj;
    };
}

/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.wsdaemon.WaitForInitRequest}
 */
proto.wsdaemon.WaitForInitRequest.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.wsdaemon.WaitForInitRequest();
    return proto.wsdaemon.WaitForInitRequest.deserializeBinaryFromReader(msg, reader);
};

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.wsdaemon.WaitForInitRequest} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.wsdaemon.WaitForInitRequest}
 */
proto.wsdaemon.WaitForInitRequest.deserializeBinaryFromReader = function (msg, reader) {
    while (reader.nextField()) {
        if (reader.isEndGroup()) {
            break;
        }
        var field = reader.getFieldNumber();
        switch (field) {
            case 1:
                var value = /** @type {string} */ (reader.readString());
                msg.setId(value);
                break;
            default:
                reader.skipField();
                break;
        }
    }
    return msg;
};

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.wsdaemon.WaitForInitRequest.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.wsdaemon.WaitForInitRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
};

/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.wsdaemon.WaitForInitRequest} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.wsdaemon.WaitForInitRequest.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
    f = message.getId();
    if (f.length > 0) {
        writer.writeString(1, f);
    }
};

/**
 * optional string id = 1;
 * @return {string}
 */
proto.wsdaemon.WaitForInitRequest.prototype.getId = function () {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};

/**
 * @param {string} value
 * @return {!proto.wsdaemon.WaitForInitRequest} returns this
 */
proto.wsdaemon.WaitForInitRequest.prototype.setId = function (value) {
    return jspb.Message.setProto3StringField(this, 1, value);
};

if (jspb.Message.GENERATE_TO_OBJECT) {
    /**
     * Creates an object representation of this proto.
     * Field names that are reserved in JavaScript and will be renamed to pb_name.
     * Optional fields that are not set will be set to undefined.
     * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
     * For the list of reserved names please see:
     *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
     * @param {boolean=} opt_includeInstance Deprecated. whether to include the
     *     JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @return {!Object}
     */
    proto.wsdaemon.WaitForInitResponse.prototype.toObject = function (opt_includeInstance) {
        return proto.wsdaemon.WaitForInitResponse.toObject(opt_includeInstance, this);
    };

    /**
     * Static version of the {@see toObject} method.
     * @param {boolean|undefined} includeInstance Deprecated. Whether to include
     *     the JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @param {!proto.wsdaemon.WaitForInitResponse} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.wsdaemon.WaitForInitResponse.toObject = function (includeInstance, msg) {
        var f,
            obj = {};

        if (includeInstance) {
            obj.$jspbMessageInstance = msg;
        }
        return obj;
    };
}

/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.wsdaemon.WaitForInitResponse}
 */
proto.wsdaemon.WaitForInitResponse.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.wsdaemon.WaitForInitResponse();
    return proto.wsdaemon.WaitForInitResponse.deserializeBinaryFromReader(msg, reader);
};

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.wsdaemon.WaitForInitResponse} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.wsdaemon.WaitForInitResponse}
 */
proto.wsdaemon.WaitForInitResponse.deserializeBinaryFromReader = function (msg, reader) {
    while (reader.nextField()) {
        if (reader.isEndGroup()) {
            break;
        }
        var field = reader.getFieldNumber();
        switch (field) {
            default:
                reader.skipField();
                break;
        }
    }
    return msg;
};

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.wsdaemon.WaitForInitResponse.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.wsdaemon.WaitForInitResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
};

/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.wsdaemon.WaitForInitResponse} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.wsdaemon.WaitForInitResponse.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
};

if (jspb.Message.GENERATE_TO_OBJECT) {
    /**
     * Creates an object representation of this proto.
     * Field names that are reserved in JavaScript and will be renamed to pb_name.
     * Optional fields that are not set will be set to undefined.
     * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
     * For the list of reserved names please see:
     *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
     * @param {boolean=} opt_includeInstance Deprecated. whether to include the
     *     JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @return {!Object}
     */
    proto.wsdaemon.IsWorkspaceExistsRequest.prototype.toObject = function (opt_includeInstance) {
        return proto.wsdaemon.IsWorkspaceExistsRequest.toObject(opt_includeInstance, this);
    };

    /**
     * Static version of the {@see toObject} method.
     * @param {boolean|undefined} includeInstance Deprecated. Whether to include
     *     the JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @param {!proto.wsdaemon.IsWorkspaceExistsRequest} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.wsdaemon.IsWorkspaceExistsRequest.toObject = function (includeInstance, msg) {
        var f,
            obj = {
                id: jspb.Message.getFieldWithDefault(msg, 1, ""),
            };

        if (includeInstance) {
            obj.$jspbMessageInstance = msg;
        }
        return obj;
    };
}

/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.wsdaemon.IsWorkspaceExistsRequest}
 */
proto.wsdaemon.IsWorkspaceExistsRequest.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.wsdaemon.IsWorkspaceExistsRequest();
    return proto.wsdaemon.IsWorkspaceExistsRequest.deserializeBinaryFromReader(msg, reader);
};

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.wsdaemon.IsWorkspaceExistsRequest} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.wsdaemon.IsWorkspaceExistsRequest}
 */
proto.wsdaemon.IsWorkspaceExistsRequest.deserializeBinaryFromReader = function (msg, reader) {
    while (reader.nextField()) {
        if (reader.isEndGroup()) {
            break;
        }
        var field = reader.getFieldNumber();
        switch (field) {
            case 1:
                var value = /** @type {string} */ (reader.readString());
                msg.setId(value);
                break;
            default:
                reader.skipField();
                break;
        }
    }
    return msg;
};

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.wsdaemon.IsWorkspaceExistsRequest.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.wsdaemon.IsWorkspaceExistsRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
};

/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.wsdaemon.IsWorkspaceExistsRequest} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.wsdaemon.IsWorkspaceExistsRequest.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
    f = message.getId();
    if (f.length > 0) {
        writer.writeString(1, f);
    }
};

/**
 * optional string id = 1;
 * @return {string}
 */
proto.wsdaemon.IsWorkspaceExistsRequest.prototype.getId = function () {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};

/**
 * @param {string} value
 * @return {!proto.wsdaemon.IsWorkspaceExistsRequest} returns this
 */
proto.wsdaemon.IsWorkspaceExistsRequest.prototype.setId = function (value) {
    return jspb.Message.setProto3StringField(this, 1, value);
};

if (jspb.Message.GENERATE_TO_OBJECT) {
    /**
     * Creates an object representation of this proto.
     * Field names that are reserved in JavaScript and will be renamed to pb_name.
     * Optional fields that are not set will be set to undefined.
     * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
     * For the list of reserved names please see:
     *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
     * @param {boolean=} opt_includeInstance Deprecated. whether to include the
     *     JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @return {!Object}
     */
    proto.wsdaemon.IsWorkspaceExistsResponse.prototype.toObject = function (opt_includeInstance) {
        return proto.wsdaemon.IsWorkspaceExistsResponse.toObject(opt_includeInstance, this);
    };

    /**
     * Static version of the {@see toObject} method.
     * @param {boolean|undefined} includeInstance Deprecated. Whether to include
     *     the JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @param {!proto.wsdaemon.IsWorkspaceExistsResponse} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.wsdaemon.IsWorkspaceExistsResponse.toObject = function (includeInstance, msg) {
        var f,
            obj = {
                exists: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
            };

        if (includeInstance) {
            obj.$jspbMessageInstance = msg;
        }
        return obj;
    };
}

/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.wsdaemon.IsWorkspaceExistsResponse}
 */
proto.wsdaemon.IsWorkspaceExistsResponse.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.wsdaemon.IsWorkspaceExistsResponse();
    return proto.wsdaemon.IsWorkspaceExistsResponse.deserializeBinaryFromReader(msg, reader);
};

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.wsdaemon.IsWorkspaceExistsResponse} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.wsdaemon.IsWorkspaceExistsResponse}
 */
proto.wsdaemon.IsWorkspaceExistsResponse.deserializeBinaryFromReader = function (msg, reader) {
    while (reader.nextField()) {
        if (reader.isEndGroup()) {
            break;
        }
        var field = reader.getFieldNumber();
        switch (field) {
            case 1:
                var value = /** @type {boolean} */ (reader.readBool());
                msg.setExists(value);
                break;
            default:
                reader.skipField();
                break;
        }
    }
    return msg;
};

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.wsdaemon.IsWorkspaceExistsResponse.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.wsdaemon.IsWorkspaceExistsResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
};

/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.wsdaemon.IsWorkspaceExistsResponse} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.wsdaemon.IsWorkspaceExistsResponse.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
    f = message.getExists();
    if (f) {
        writer.writeBool(1, f);
    }
};

/**
 * optional bool exists = 1;
 * @return {boolean}
 */
proto.wsdaemon.IsWorkspaceExistsResponse.prototype.getExists = function () {
    return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
};

/**
 * @param {boolean} value
 * @return {!proto.wsdaemon.IsWorkspaceExistsResponse} returns this
 */
proto.wsdaemon.IsWorkspaceExistsResponse.prototype.setExists = function (value) {
    return jspb.Message.setProto3BooleanField(this, 1, value);
};

if (jspb.Message.GENERATE_TO_OBJECT) {
    /**
     * Creates an object representation of this proto.
     * Field names that are reserved in JavaScript and will be renamed to pb_name.
     * Optional fields that are not set will be set to undefined.
     * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
     * For the list of reserved names please see:
     *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
     * @param {boolean=} opt_includeInstance Deprecated. whether to include the
     *     JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @return {!Object}
     */
    proto.wsdaemon.TakeSnapshotRequest.prototype.toObject = function (opt_includeInstance) {
        return proto.wsdaemon.TakeSnapshotRequest.toObject(opt_includeInstance, this);
    };

    /**
     * Static version of the {@see toObject} method.
     * @param {boolean|undefined} includeInstance Deprecated. Whether to include
     *     the JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @param {!proto.wsdaemon.TakeSnapshotRequest} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.wsdaemon.TakeSnapshotRequest.toObject = function (includeInstance, msg) {
        var f,
            obj = {
                id: jspb.Message.getFieldWithDefault(msg, 1, ""),
                returnImmediately: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
            };

        if (includeInstance) {
            obj.$jspbMessageInstance = msg;
        }
        return obj;
    };
}

/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.wsdaemon.TakeSnapshotRequest}
 */
proto.wsdaemon.TakeSnapshotRequest.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.wsdaemon.TakeSnapshotRequest();
    return proto.wsdaemon.TakeSnapshotRequest.deserializeBinaryFromReader(msg, reader);
};

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.wsdaemon.TakeSnapshotRequest} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.wsdaemon.TakeSnapshotRequest}
 */
proto.wsdaemon.TakeSnapshotRequest.deserializeBinaryFromReader = function (msg, reader) {
    while (reader.nextField()) {
        if (reader.isEndGroup()) {
            break;
        }
        var field = reader.getFieldNumber();
        switch (field) {
            case 1:
                var value = /** @type {string} */ (reader.readString());
                msg.setId(value);
                break;
            case 2:
                var value = /** @type {boolean} */ (reader.readBool());
                msg.setReturnImmediately(value);
                break;
            default:
                reader.skipField();
                break;
        }
    }
    return msg;
};

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.wsdaemon.TakeSnapshotRequest.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.wsdaemon.TakeSnapshotRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
};

/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.wsdaemon.TakeSnapshotRequest} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.wsdaemon.TakeSnapshotRequest.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
    f = message.getId();
    if (f.length > 0) {
        writer.writeString(1, f);
    }
    f = message.getReturnImmediately();
    if (f) {
        writer.writeBool(2, f);
    }
};

/**
 * optional string id = 1;
 * @return {string}
 */
proto.wsdaemon.TakeSnapshotRequest.prototype.getId = function () {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};

/**
 * @param {string} value
 * @return {!proto.wsdaemon.TakeSnapshotRequest} returns this
 */
proto.wsdaemon.TakeSnapshotRequest.prototype.setId = function (value) {
    return jspb.Message.setProto3StringField(this, 1, value);
};

/**
 * optional bool return_immediately = 2;
 * @return {boolean}
 */
proto.wsdaemon.TakeSnapshotRequest.prototype.getReturnImmediately = function () {
    return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
};

/**
 * @param {boolean} value
 * @return {!proto.wsdaemon.TakeSnapshotRequest} returns this
 */
proto.wsdaemon.TakeSnapshotRequest.prototype.setReturnImmediately = function (value) {
    return jspb.Message.setProto3BooleanField(this, 2, value);
};

if (jspb.Message.GENERATE_TO_OBJECT) {
    /**
     * Creates an object representation of this proto.
     * Field names that are reserved in JavaScript and will be renamed to pb_name.
     * Optional fields that are not set will be set to undefined.
     * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
     * For the list of reserved names please see:
     *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
     * @param {boolean=} opt_includeInstance Deprecated. whether to include the
     *     JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @return {!Object}
     */
    proto.wsdaemon.TakeSnapshotResponse.prototype.toObject = function (opt_includeInstance) {
        return proto.wsdaemon.TakeSnapshotResponse.toObject(opt_includeInstance, this);
    };

    /**
     * Static version of the {@see toObject} method.
     * @param {boolean|undefined} includeInstance Deprecated. Whether to include
     *     the JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @param {!proto.wsdaemon.TakeSnapshotResponse} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.wsdaemon.TakeSnapshotResponse.toObject = function (includeInstance, msg) {
        var f,
            obj = {
                url: jspb.Message.getFieldWithDefault(msg, 1, ""),
            };

        if (includeInstance) {
            obj.$jspbMessageInstance = msg;
        }
        return obj;
    };
}

/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.wsdaemon.TakeSnapshotResponse}
 */
proto.wsdaemon.TakeSnapshotResponse.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.wsdaemon.TakeSnapshotResponse();
    return proto.wsdaemon.TakeSnapshotResponse.deserializeBinaryFromReader(msg, reader);
};

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.wsdaemon.TakeSnapshotResponse} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.wsdaemon.TakeSnapshotResponse}
 */
proto.wsdaemon.TakeSnapshotResponse.deserializeBinaryFromReader = function (msg, reader) {
    while (reader.nextField()) {
        if (reader.isEndGroup()) {
            break;
        }
        var field = reader.getFieldNumber();
        switch (field) {
            case 1:
                var value = /** @type {string} */ (reader.readString());
                msg.setUrl(value);
                break;
            default:
                reader.skipField();
                break;
        }
    }
    return msg;
};

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.wsdaemon.TakeSnapshotResponse.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.wsdaemon.TakeSnapshotResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
};

/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.wsdaemon.TakeSnapshotResponse} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.wsdaemon.TakeSnapshotResponse.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
    f = message.getUrl();
    if (f.length > 0) {
        writer.writeString(1, f);
    }
};

/**
 * optional string url = 1;
 * @return {string}
 */
proto.wsdaemon.TakeSnapshotResponse.prototype.getUrl = function () {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};

/**
 * @param {string} value
 * @return {!proto.wsdaemon.TakeSnapshotResponse} returns this
 */
proto.wsdaemon.TakeSnapshotResponse.prototype.setUrl = function (value) {
    return jspb.Message.setProto3StringField(this, 1, value);
};

if (jspb.Message.GENERATE_TO_OBJECT) {
    /**
     * Creates an object representation of this proto.
     * Field names that are reserved in JavaScript and will be renamed to pb_name.
     * Optional fields that are not set will be set to undefined.
     * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
     * For the list of reserved names please see:
     *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
     * @param {boolean=} opt_includeInstance Deprecated. whether to include the
     *     JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @return {!Object}
     */
    proto.wsdaemon.DisposeWorkspaceRequest.prototype.toObject = function (opt_includeInstance) {
        return proto.wsdaemon.DisposeWorkspaceRequest.toObject(opt_includeInstance, this);
    };

    /**
     * Static version of the {@see toObject} method.
     * @param {boolean|undefined} includeInstance Deprecated. Whether to include
     *     the JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @param {!proto.wsdaemon.DisposeWorkspaceRequest} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.wsdaemon.DisposeWorkspaceRequest.toObject = function (includeInstance, msg) {
        var f,
            obj = {
                id: jspb.Message.getFieldWithDefault(msg, 1, ""),
                backup: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
                backupLogs: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
            };

        if (includeInstance) {
            obj.$jspbMessageInstance = msg;
        }
        return obj;
    };
}

/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.wsdaemon.DisposeWorkspaceRequest}
 */
proto.wsdaemon.DisposeWorkspaceRequest.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.wsdaemon.DisposeWorkspaceRequest();
    return proto.wsdaemon.DisposeWorkspaceRequest.deserializeBinaryFromReader(msg, reader);
};

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.wsdaemon.DisposeWorkspaceRequest} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.wsdaemon.DisposeWorkspaceRequest}
 */
proto.wsdaemon.DisposeWorkspaceRequest.deserializeBinaryFromReader = function (msg, reader) {
    while (reader.nextField()) {
        if (reader.isEndGroup()) {
            break;
        }
        var field = reader.getFieldNumber();
        switch (field) {
            case 1:
                var value = /** @type {string} */ (reader.readString());
                msg.setId(value);
                break;
            case 2:
                var value = /** @type {boolean} */ (reader.readBool());
                msg.setBackup(value);
                break;
            case 3:
                var value = /** @type {boolean} */ (reader.readBool());
                msg.setBackupLogs(value);
                break;
            default:
                reader.skipField();
                break;
        }
    }
    return msg;
};

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.wsdaemon.DisposeWorkspaceRequest.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.wsdaemon.DisposeWorkspaceRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
};

/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.wsdaemon.DisposeWorkspaceRequest} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.wsdaemon.DisposeWorkspaceRequest.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
    f = message.getId();
    if (f.length > 0) {
        writer.writeString(1, f);
    }
    f = message.getBackup();
    if (f) {
        writer.writeBool(2, f);
    }
    f = message.getBackupLogs();
    if (f) {
        writer.writeBool(3, f);
    }
};

/**
 * optional string id = 1;
 * @return {string}
 */
proto.wsdaemon.DisposeWorkspaceRequest.prototype.getId = function () {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};

/**
 * @param {string} value
 * @return {!proto.wsdaemon.DisposeWorkspaceRequest} returns this
 */
proto.wsdaemon.DisposeWorkspaceRequest.prototype.setId = function (value) {
    return jspb.Message.setProto3StringField(this, 1, value);
};

/**
 * optional bool backup = 2;
 * @return {boolean}
 */
proto.wsdaemon.DisposeWorkspaceRequest.prototype.getBackup = function () {
    return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
};

/**
 * @param {boolean} value
 * @return {!proto.wsdaemon.DisposeWorkspaceRequest} returns this
 */
proto.wsdaemon.DisposeWorkspaceRequest.prototype.setBackup = function (value) {
    return jspb.Message.setProto3BooleanField(this, 2, value);
};

/**
 * optional bool backup_logs = 3;
 * @return {boolean}
 */
proto.wsdaemon.DisposeWorkspaceRequest.prototype.getBackupLogs = function () {
    return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
};

/**
 * @param {boolean} value
 * @return {!proto.wsdaemon.DisposeWorkspaceRequest} returns this
 */
proto.wsdaemon.DisposeWorkspaceRequest.prototype.setBackupLogs = function (value) {
    return jspb.Message.setProto3BooleanField(this, 3, value);
};

if (jspb.Message.GENERATE_TO_OBJECT) {
    /**
     * Creates an object representation of this proto.
     * Field names that are reserved in JavaScript and will be renamed to pb_name.
     * Optional fields that are not set will be set to undefined.
     * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
     * For the list of reserved names please see:
     *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
     * @param {boolean=} opt_includeInstance Deprecated. whether to include the
     *     JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @return {!Object}
     */
    proto.wsdaemon.DisposeWorkspaceResponse.prototype.toObject = function (opt_includeInstance) {
        return proto.wsdaemon.DisposeWorkspaceResponse.toObject(opt_includeInstance, this);
    };

    /**
     * Static version of the {@see toObject} method.
     * @param {boolean|undefined} includeInstance Deprecated. Whether to include
     *     the JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @param {!proto.wsdaemon.DisposeWorkspaceResponse} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.wsdaemon.DisposeWorkspaceResponse.toObject = function (includeInstance, msg) {
        var f,
            obj = {
                gitStatus:
                    (f = msg.getGitStatus()) &&
                    content$service$api_initializer_pb.GitStatus.toObject(includeInstance, f),
            };

        if (includeInstance) {
            obj.$jspbMessageInstance = msg;
        }
        return obj;
    };
}

/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.wsdaemon.DisposeWorkspaceResponse}
 */
proto.wsdaemon.DisposeWorkspaceResponse.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.wsdaemon.DisposeWorkspaceResponse();
    return proto.wsdaemon.DisposeWorkspaceResponse.deserializeBinaryFromReader(msg, reader);
};

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.wsdaemon.DisposeWorkspaceResponse} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.wsdaemon.DisposeWorkspaceResponse}
 */
proto.wsdaemon.DisposeWorkspaceResponse.deserializeBinaryFromReader = function (msg, reader) {
    while (reader.nextField()) {
        if (reader.isEndGroup()) {
            break;
        }
        var field = reader.getFieldNumber();
        switch (field) {
            case 1:
                var value = new content$service$api_initializer_pb.GitStatus();
                reader.readMessage(value, content$service$api_initializer_pb.GitStatus.deserializeBinaryFromReader);
                msg.setGitStatus(value);
                break;
            default:
                reader.skipField();
                break;
        }
    }
    return msg;
};

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.wsdaemon.DisposeWorkspaceResponse.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.wsdaemon.DisposeWorkspaceResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
};

/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.wsdaemon.DisposeWorkspaceResponse} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.wsdaemon.DisposeWorkspaceResponse.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
    f = message.getGitStatus();
    if (f != null) {
        writer.writeMessage(1, f, content$service$api_initializer_pb.GitStatus.serializeBinaryToWriter);
    }
};

/**
 * optional contentservice.GitStatus git_status = 1;
 * @return {?proto.contentservice.GitStatus}
 */
proto.wsdaemon.DisposeWorkspaceResponse.prototype.getGitStatus = function () {
    return /** @type{?proto.contentservice.GitStatus} */ (
        jspb.Message.getWrapperField(this, content$service$api_initializer_pb.GitStatus, 1)
    );
};

/**
 * @param {?proto.contentservice.GitStatus|undefined} value
 * @return {!proto.wsdaemon.DisposeWorkspaceResponse} returns this
 */
proto.wsdaemon.DisposeWorkspaceResponse.prototype.setGitStatus = function (value) {
    return jspb.Message.setWrapperField(this, 1, value);
};

/**
 * Clears the message field making it undefined.
 * @return {!proto.wsdaemon.DisposeWorkspaceResponse} returns this
 */
proto.wsdaemon.DisposeWorkspaceResponse.prototype.clearGitStatus = function () {
    return this.setGitStatus(undefined);
};

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.wsdaemon.DisposeWorkspaceResponse.prototype.hasGitStatus = function () {
    return jspb.Message.getField(this, 1) != null;
};

if (jspb.Message.GENERATE_TO_OBJECT) {
    /**
     * Creates an object representation of this proto.
     * Field names that are reserved in JavaScript and will be renamed to pb_name.
     * Optional fields that are not set will be set to undefined.
     * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
     * For the list of reserved names please see:
     *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
     * @param {boolean=} opt_includeInstance Deprecated. whether to include the
     *     JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @return {!Object}
     */
    proto.wsdaemon.BackupWorkspaceRequest.prototype.toObject = function (opt_includeInstance) {
        return proto.wsdaemon.BackupWorkspaceRequest.toObject(opt_includeInstance, this);
    };

    /**
     * Static version of the {@see toObject} method.
     * @param {boolean|undefined} includeInstance Deprecated. Whether to include
     *     the JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @param {!proto.wsdaemon.BackupWorkspaceRequest} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.wsdaemon.BackupWorkspaceRequest.toObject = function (includeInstance, msg) {
        var f,
            obj = {
                id: jspb.Message.getFieldWithDefault(msg, 1, ""),
            };

        if (includeInstance) {
            obj.$jspbMessageInstance = msg;
        }
        return obj;
    };
}

/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.wsdaemon.BackupWorkspaceRequest}
 */
proto.wsdaemon.BackupWorkspaceRequest.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.wsdaemon.BackupWorkspaceRequest();
    return proto.wsdaemon.BackupWorkspaceRequest.deserializeBinaryFromReader(msg, reader);
};

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.wsdaemon.BackupWorkspaceRequest} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.wsdaemon.BackupWorkspaceRequest}
 */
proto.wsdaemon.BackupWorkspaceRequest.deserializeBinaryFromReader = function (msg, reader) {
    while (reader.nextField()) {
        if (reader.isEndGroup()) {
            break;
        }
        var field = reader.getFieldNumber();
        switch (field) {
            case 1:
                var value = /** @type {string} */ (reader.readString());
                msg.setId(value);
                break;
            default:
                reader.skipField();
                break;
        }
    }
    return msg;
};

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.wsdaemon.BackupWorkspaceRequest.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.wsdaemon.BackupWorkspaceRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
};

/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.wsdaemon.BackupWorkspaceRequest} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.wsdaemon.BackupWorkspaceRequest.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
    f = message.getId();
    if (f.length > 0) {
        writer.writeString(1, f);
    }
};

/**
 * optional string id = 1;
 * @return {string}
 */
proto.wsdaemon.BackupWorkspaceRequest.prototype.getId = function () {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};

/**
 * @param {string} value
 * @return {!proto.wsdaemon.BackupWorkspaceRequest} returns this
 */
proto.wsdaemon.BackupWorkspaceRequest.prototype.setId = function (value) {
    return jspb.Message.setProto3StringField(this, 1, value);
};

if (jspb.Message.GENERATE_TO_OBJECT) {
    /**
     * Creates an object representation of this proto.
     * Field names that are reserved in JavaScript and will be renamed to pb_name.
     * Optional fields that are not set will be set to undefined.
     * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
     * For the list of reserved names please see:
     *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
     * @param {boolean=} opt_includeInstance Deprecated. whether to include the
     *     JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @return {!Object}
     */
    proto.wsdaemon.BackupWorkspaceResponse.prototype.toObject = function (opt_includeInstance) {
        return proto.wsdaemon.BackupWorkspaceResponse.toObject(opt_includeInstance, this);
    };

    /**
     * Static version of the {@see toObject} method.
     * @param {boolean|undefined} includeInstance Deprecated. Whether to include
     *     the JSPB instance for transitional soy proto support:
     *     http://goto/soy-param-migration
     * @param {!proto.wsdaemon.BackupWorkspaceResponse} msg The msg instance to transform.
     * @return {!Object}
     * @suppress {unusedLocalVariables} f is only used for nested messages
     */
    proto.wsdaemon.BackupWorkspaceResponse.toObject = function (includeInstance, msg) {
        var f,
            obj = {
                url: jspb.Message.getFieldWithDefault(msg, 1, ""),
            };

        if (includeInstance) {
            obj.$jspbMessageInstance = msg;
        }
        return obj;
    };
}

/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.wsdaemon.BackupWorkspaceResponse}
 */
proto.wsdaemon.BackupWorkspaceResponse.deserializeBinary = function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.wsdaemon.BackupWorkspaceResponse();
    return proto.wsdaemon.BackupWorkspaceResponse.deserializeBinaryFromReader(msg, reader);
};

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.wsdaemon.BackupWorkspaceResponse} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.wsdaemon.BackupWorkspaceResponse}
 */
proto.wsdaemon.BackupWorkspaceResponse.deserializeBinaryFromReader = function (msg, reader) {
    while (reader.nextField()) {
        if (reader.isEndGroup()) {
            break;
        }
        var field = reader.getFieldNumber();
        switch (field) {
            case 1:
                var value = /** @type {string} */ (reader.readString());
                msg.setUrl(value);
                break;
            default:
                reader.skipField();
                break;
        }
    }
    return msg;
};

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.wsdaemon.BackupWorkspaceResponse.prototype.serializeBinary = function () {
    var writer = new jspb.BinaryWriter();
    proto.wsdaemon.BackupWorkspaceResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
};

/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.wsdaemon.BackupWorkspaceResponse} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.wsdaemon.BackupWorkspaceResponse.serializeBinaryToWriter = function (message, writer) {
    var f = undefined;
    f = message.getUrl();
    if (f.length > 0) {
        writer.writeString(1, f);
    }
};

/**
 * optional string url = 1;
 * @return {string}
 */
proto.wsdaemon.BackupWorkspaceResponse.prototype.getUrl = function () {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};

/**
 * @param {string} value
 * @return {!proto.wsdaemon.BackupWorkspaceResponse} returns this
 */
proto.wsdaemon.BackupWorkspaceResponse.prototype.setUrl = function (value) {
    return jspb.Message.setProto3StringField(this, 1, value);
};

/**
 * @enum {number}
 */
proto.wsdaemon.WorkspaceContentState = {
    NONE: 0,
    SETTING_UP: 1,
    AVAILABLE: 2,
    WRAPPING_UP: 3,
};

goog.object.extend(exports, proto.wsdaemon);
